home *** CD-ROM | disk | FTP | other *** search
/ Technotools / Technotools (Chestnut CD-ROM)(1993).ISO / unix / lin95aux / relnotes.95a < prev   
Encoding:
Text File  |  1992-03-14  |  15.3 KB  |  369 lines

  1.  
  2.  
  3.         RELEASE NOTES FOR LINUX v0.95
  4.                 Linus Torvalds, March 7, 1992
  5.                 REV A March 14, 1992 by tgm  
  6.  
  7. This is file mostly contains info on changed features of Linux, and
  8. using old versions as a help-reference might be a good idea.
  9.  
  10.  
  11.         COPYRIGHT
  12.  
  13. Linux-0.95 is NOT public domain software, but is copyrighted by me.  The
  14. copyright conditions are the same as those imposed by the GNU copyleft:
  15. get a copy of the GNU copyleft at any major ftp-site (if it carries
  16. linux, it probably carries a lot of GNU software anyway, and they all
  17. contain the copyright). 
  18.  
  19. The copyleft is pretty detailed, but it mostly just means that you may
  20. freely copy linux for your own use, and redistribute all/parts of it, as
  21. long as you make source available (not necessarily in the same
  22. distribution, but you make it clear how people can get it for nothing
  23. more than copying costs).  Any changes you make that you distribute will
  24. also automatically fall under the GNU copyleft.
  25.  
  26. NOTE! The linux unistd library-functions (the low-level interface to
  27. linux: system calls etc) are exempt from the copyright - you may use
  28. them as you wish, and using those in your binary files won't mean that
  29. your files are automatically under the GNU copyleft.  This concerns
  30. /only/ the unistd-library and those (few) other library functions I have
  31. written: most of the rest of the library has it's own copyrights (or is
  32. public domain).  See the library sources for details of those. 
  33.  
  34.  
  35.         INSTALLATION
  36.  
  37. This is a SHORT install-note.  The installation is very similar to 0.11
  38. and 0.12, so you should read RELNOTES.11 too.  There are a couple of
  39. programs you will need to install linux: something that writes disk
  40. images (rawrite.exe or NU or...) and something that can create harddisk
  41. partitions (fdisk under xenix or older versions of dos, edpart.exe or
  42. something like that). 
  43.  
  44. NOTE! Repartitioning your harddisk will destroy all data on it (well,
  45. not exactly, but if you know enough to get back the data you probably
  46. didn't need this warning).  So be careful.
  47.  
  48. READ THIS THROUGH, THEN READ RELNOTES.11, AND IF YOU ARE SURE YOU KNOW
  49. WHAT YOU ARE DOING, CONTINUE.  OTHERWISE, PANIC.  OR WRITE ME FOR
  50. EXPLANATIONS.  OR DO ANYTHING BUT INSTALL LINUX - IT'S VERY SIMPLE, BUT
  51. IF YOU DON'T KNOW WHAT YOU ARE DOING YOU'LL PROBABLY BE SORRY.  I'D
  52. RATHER ANSWER A FEW UNNECESSARY MAILS THAN GET MAIL SAYING "YOU KILLED
  53. MY HARDDISK, BASTARD.  I'M GOING TO FIND YOU, AND YOU'LL BE SORRY WHEN I
  54. DO". 
  55.  
  56. Minimum files needed:
  57.  
  58.     RELNOTES.95 (this file)
  59.     RELNOTES.12
  60.         RELNOTES.11 (plus any other docs you might find: the FAQ etc)
  61.     boot.img    (version 0.95)
  62.     root.img    (version 0.95) 
  63.     auxtool.img (for tar, compress, uncompress, vi)
  64.     rawrite.exe
  65.     some disk partitioning software, eg fdisk, edpart.exe etc.
  66.  
  67. Optionally:
  68.         root.img     (version 0.12, for files you might wish to copy)
  69.         other binaries, GCC, PERL, linbin, etc.   
  70.  
  71. 1) back up everything you have on your harddisk - linux-0.95 is still in
  72.    beta and might do weird things.  The only thing I guarantee is that
  73.    it has worked fine on /my/ machine - for all I know it might eat your
  74.    harddisk and spit it out in small pieces on any other hardware. 
  75.  
  76.    Linux-0.95 can easily be booted by getting the 2 files `boot.img'
  77.    and `root.img' from the linux zip archive and writing them out to disks
  78.    of the SAME size (i.e two 1.44M floppies or two 1.2M floppies).
  79.    Writing the disks is done with the "rawrite.exe" program
  80.    from dos. Linux is then booted simply by inserting the boot diskette in 
  81.    drive A, and rebooting the machine. If everything goes well, linux will 
  82.    ask you to insert the root-disk after loading the system. Hopefully 
  83.    linux will then correctly load the shell executable, and allow you to 
  84.    login as root (no password). After logging in the system prompt `#'
  85.    should be displayed.
  86.  
  87.    You can get a complete list of available commands by pressing <tab>
  88.    twice: the root-disk contains mostly setup-programs needed to install
  89.    the system on a harddisk.  You can test them a bit, reading directories
  90.    etc. 
  91.  
  92.    PROBLEMS: should you be unable to boot Linux, you may have to reconfigure
  93.    your computer's CMOS setup. You must disable EMS memory, telling CMOS
  94.    to use all your RAM as extended memory. Linux may not be compatible with
  95.    shadow ram either, so you may want to disable it also. If Linux's 
  96.    fdisk command doesn't show any hard disk partitions you may have to
  97.    check you CMOS setup to be sure that a hard drive type is selected.
  98.    Remember Linux requires an AT type hard disk controller and a 386 or
  99.    better CPU.
  100.    
  101. 2) Test out the linux boot-disk with the root file system.  If it
  102.    doesn't work, check the hardware requirements, and mail me if you
  103.    still think it should work.  I might not be able to help you, but
  104.    your bug-report would still be appreciated. 
  105.  
  106.    Linux-0.95 now has an init/login: there should be 4 logins started on
  107.    the first 4 virtual consoles.  Log in as root (no password), and test
  108.    it out.  Change to the other logins by pressing left-alt + FN[1-4]. 
  109.    Note that booting up with a floppy as root is S..L..O..W..  - the
  110.    floppy driver has been optimized for sequential access (backups etc),
  111.    and trashes somewhat with demand-loading. 
  112.  
  113.    Test that linux can read your harddisk at least partly: run the fdisk
  114.    program on the root-disk, and see if it barfs.  If it tells you about
  115.    any partitions at all, linux can successfully read at least part of
  116.    your harddisk. 
  117.  
  118.    NOTE! Harddisk device names and numbers have changed between versions
  119.    0.12 and 0.95: the new numbering system was needed for the extended
  120.    partitions, and a new naming scheme was in order so that people
  121.    wouldn't confuse the old devices with the new ones.
  122.  
  123.    The new harddisk device names are: /dev/hd followed by an 'a' for the
  124.    first drive, or a 'b' for the second one.  After that comes the
  125.    partition number, 1-4 for the primary partitions, 5- for possible
  126.    extended partitions.  No number means the complete disk. Like this:
  127.  
  128.     /dev/hda    the whole first harddisk (old: /dev/hd0)
  129.     /dev/hdb3    partition nr 3 on the second disk (old: /dev/hd8)
  130.  
  131. 3) Make sure that you have a free /primary/ partition.  There can be 4
  132.    primary partitions per drive: newer DOS fdisks seem to be able to
  133.    create only 2 (one primary and one extended).  In that case use some
  134.    other partitioning software: edpart.exe etc.  Linux fdisk currently
  135.    only tells you the partition info - it doesn't write to the disk. 
  136.  
  137.    Remember to check how big your partitions are, as that can be used to
  138.    tell which device Linux thinks it is. AFTER PARTITIONING ALWAYS USE
  139.    LINUX'S OWN FDISK TO READ THE PARTITIONS SO THAT YOU WILL KNOW HOW
  140.    LINUX LABELS THE PARTITIONS. Do not assume that Linux numbers always
  141.    agree with numbers reported by other partitioning software. For example,
  142.    what DOS's fdisk refers to as partition number 2 may be viewed by Linux
  143.    as /dev/hd4. It all depends on your particular unique circumstances and
  144.    is of no importance EXCEPT that when you tell Linux to make a file system
  145.    on your disk OR patch the Linux boot image to tell it to use the hard 
  146.    drive as root. If you and Linux aren't both "on the same page" conceptually,
  147.    you will unintentionally overwrite the wrong partition, or be unable to 
  148.    boot from the hard drive.
  149.  
  150.    NOTE! Linux-0.95 /might/ recognize extended partitions: but the code
  151.    for this is utterly untested, as I don't have any of those.  Do NOT
  152.    use the extended partitions unless you can verify that they are
  153.    indeed correctly set up - if my routines are wrong, writing to the
  154.    extended partitions might just overwrite some other partition
  155.    instead.  Not nice. 
  156.  
  157. 4) Boot up linux again, fdisk to make sure you now have the new
  158.    partition, and use mkfs to make a filesystem on one of the partitions
  159.    which Linux's OWN fdisk reports.
  160.  
  161.  
  162.    Write "mkfs -c /dev/hdX nnn" where X
  163.    is the device number reported by linux fdisk, and nnn is the size - also 
  164.    reported    by fdisk.  nnn is the size in /blocks/, ie kilobytes.  You 
  165.    should be able to use the size info to determine which partition is 
  166.    represented  by which device name. 
  167.  
  168. 5) Mount the new disk partition and copy over the
  169.    root filesystem to the harddisk, eg like this:
  170.          
  171.           cd /
  172.           mkdir user
  173.           mount /dev/hdaX /user
  174.           cd /user
  175.           for i in bin dev etc usr tmp
  176.       do
  177.       cp +recursive /$i /user
  178.           done
  179.           umount /dev/hdaX          
  180.  
  181.    You cannot use just "cp +recursive / /user", as that will result in a
  182.    loop.
  183.  
  184. 6) Sync the filesystem after you have played around enough, and reboot.
  185.  
  186.          sync
  187.          sync
  188.      lo
  189.  
  190.     (none) login: sync
  191.     <wait for it to sync>
  192.     ctrl-alt-del
  193.  
  194.    THIS IS IMPORTANT! NEVER EVER FORGET TO SYNC BEFORE KILLING THE MACHINE.
  195.  
  196. 7) Change the bootdisk to understand which partition it should use as a
  197.    root filesystem.  See RELNOTES.11: it's still the word at offset
  198.    508 into the image. You should be up and running.
  199.  
  200. 8) When you've successfully started up with your harddisk as root, you
  201.    can install auxtool.img and the other disk images (i.e. root.img ver. 0.12 )
  202.    from a floppy, and copy over any files you find there. First use rawrite
  203.    to copy auxtool.img over to a blank formatted diskette. Then mount
  204.    the diskette.
  205.  
  206.    Mounting a floppy is easy, proceed as follows:
  207.  
  208.          cd /
  209.          mkdir floppy
  210.          mount /dev/PS0 /floppy    (if you have a 3.5" drive)
  211.  
  212.    or
  213.         cd /
  214.         mkdir floppy
  215.     mount /dev/at0 /floppy    (for 5.25" floppies)
  216.  
  217.    After that the files can be copied to your harddisk, eg:
  218.  
  219.             cd /floppy
  220.             cp compress /usr/bin
  221.             cp uncompress /usr/bin
  222.             cp tar /usr/bin
  223.             cp vi /usr/bin
  224.             sync
  225.             sync
  226.             sync
  227.             umount /dev/PS0 (or /dev/at0 for 5.25" floppies)
  228.  
  229.  
  230. Now, you may follow the same technique to copy files over from the
  231. version 0.12 root image, if you so desire.
  232.  
  233. 9) Copying tar files over to Linux: Other Linux software is usually 
  234.    distributed in one of two different ways:
  235.  
  236.            1) tar format, identified by  `.tar' suffix.
  237.            2) tar.Z format identified by `.taz' suffix.
  238.  
  239.   IF THE SUFFIX IS "tar":
  240.  
  241.    To transfer a `.tar' file over to Linux use rawrite to copy it
  242.    to a diskette, HOWEVER after booting Linux and inserting the
  243.    diskette holding the tar file, you DO NOT use `mount'. Why? 
  244.    Because the tar archive is not a file system as are the image
  245.    files. You use this command to transfer tar archives from the
  246.    diskette:
  247.   
  248.            tar xvf /dev/PS0    (or /dev/at0 for 5.25" floppies)
  249.  
  250.   IF THE SUFFIX IS "taz"
  251.   
  252.    To transfer a `.taz' you must perform some intermediate steps.
  253.    One of the easiest ways is to use a version of tar that runs
  254.    under MS-DOS and then create a temporary tar file which you can
  255.    transfer to Linux using the previously described rawrite 
  256.    method. Suppose you wish to transfer a file named  `anyfile.taz'
  257.    to Linux. Use the DOS version of tar a follows:
  258.  
  259.            tar cvf temp.tar anyfile.taz
  260.            
  261.    Now copy temp.tar to diskette using rawrite. Once inside Linux
  262.    unarchive it as follows:
  263.  
  264.            tar xvf /dev/PS0          (this will retrieve `anyfile.taz')
  265.            mv anyfile.taz tmp.tar.Z  (this renames the taz file)
  266.            uncompress tmp.tar.Z      (this uncompresses the taz file)
  267.            tar xvf tmp.tar           (this untars the original taz file)
  268.    
  269.    Please note that there is an MTOOLS package under development for
  270.    Linux which will allow you to read and write to and from DOS 
  271.    directly. Watch for it.
  272.  
  273.  
  274. That's it. Now go back and read the INSTALL-0.11, until you are sure you
  275. know what you are doing.
  276.  
  277.  
  278.         New features of 0.95, in order of appearance
  279.             (ie in the order you see them)
  280.  
  281.     Init/login
  282.  
  283. Yeah, thanks to poe (Peter Orbaeck (sp?)), linux now boots up like a
  284. real unix with a login-prompt.  Login as root (no passwd), and change
  285. your /etc/passwd to your hearts delight (and add other logins in
  286. /etc/inittab etc).
  287.  
  288.     Bash is even bigger
  289.  
  290. It's really a bummer to boot up from floppies: bash takes a long time to
  291. load.  Bash is also now so big that I couldn't fit compress and tar onto
  292. the root-floppy: You'll probably want the old rootimage-0.12 just in
  293. order to get tar+compress onto your harddisk.  If anybody has pointers
  294. to a simple shell that is freely distributable, it might be a good idea
  295. to use that for the root-diskette.
  296.  
  297. Especially with a small buffer-cache, things aren't fun. Don't worry:
  298. linux runs much better on a harddisk.
  299.  
  300.     Virtual consoles on any (?) hardware.
  301.  
  302. You can select one of several consoles by pressing the left alt-key and
  303. a function key at the same time. Linux should report the number of
  304. virtual consoles available upon bootup. /dev/tty0 is now "the current"
  305. screen, /dev/tty1 is the main console, and /dev/tty2-8 can exist
  306. depending on your text-mode or card.
  307.  
  308. The virtual consoles also have some new screen-handling commands: they
  309. confirm even better to vt200 control codes than 0.11. Special graphic
  310. characters etc: you can well use them as terminals to VMS (although
  311. that's a shameful waste of resources), and the PF1-4 keys work somewhat
  312. in the application-key mode.
  313.  
  314.     Symbolic links.
  315.  
  316. 0.95 now allows symlinks to point to other symlinks etc (the maximum
  317. depth is a rather arbitrary 5 links). 0.12 didn't like more than one
  318. level of indirection.
  319.  
  320.     Virtual memory.
  321.  
  322. VM under 0.95 should be better than under 0.12: no more lockups (as far
  323. as I have seen), and you can now swap to the filesystem as well as to a
  324. special partition. There are two programs to handle this: mkswap to set
  325. up a swap-file/partition and swapon to start up swapping.
  326.  
  327. mkswap needs either a partition or a file that already exists to make a
  328. swap-area. To make a swap-file, do this:
  329.  
  330.     # dd bs=1024 count=NN if=/dev/hda of=swapfile
  331.     # mkswap swapfile NN
  332.  
  333. The first command just makes a file that is NN blocks long (initializing
  334. it from /dev/hda, but that could be anything). The second command then
  335. writes the necessary setup-info into the file. To start swapping, write
  336.  
  337.     # swapon swapfile
  338.  
  339. NOTE! 'dd' isn't on the rootdisk: you have to install some things onto
  340. the harddisk before you can get up and running. 
  341.  
  342. NOTE2! When linux runs totally out of virtual memory, things slow down
  343. dramatically. It tries to keep on running as long as it can, but at
  344. least it shouldn't lock up any more. ^C should work, although you might
  345. have to wait a while for it..
  346.  
  347.     Faster floppies
  348.  
  349. Ok, you don't notice this much when booting up from a floppy: bash has
  350. grown, so it takes longer to load, and the optimizations work mostly
  351. with sequential accesses.  When you start un-taring floppies to get the
  352. programs onto your harddisk, you'll notice that it's much faster now. 
  353. That should be about the only use for floppies under a unix: nobody in
  354. their right mind uses floppies as filesystems.
  355.  
  356.     Better FS-independence
  357.  
  358. Hopefully you'll never even notice this, but the filesystem has been
  359. partly rewritten to make it less minix-fs-specific. I haven't
  360. implemented all the VFS-patches I got, so it's still not ready, but it's
  361. getting there, slowly.
  362.  
  363.     And that's it, I think.
  364.  
  365. Happy hacking.
  366.  
  367.             Linus (torvalds@kruuna.helsinki.fi)
  368.  
  369.